package com.czl.app.mapper;

import com.czl.app.model.RoleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleInfoMapper {
    int insert(RoleInfo record);

    List<String> queryRoleNameByUserId(@Param("user_id") Integer userId);

    Integer findRoleIdByRoleName(@Param("roleName") String roleName);
}